import { lazy } from "react";
import { ViewModuleIcon } from "tdesign-icons-react";
import { IRouter } from "..";

const result: IRouter[] = [
  {
    path: "/manage",
    meta: {
      title: "管理中心",
      Icon: ViewModuleIcon,
      requiredRole: "admin",
    },
    children: [
      {
        path: "userManage",
        Component: lazy(() => import("@/pages/List/UserManage")),
        meta: { title: "用户管理", requiredRole: "admin" },
      },
      {
        path: "floorManage",
        Component: lazy(() => import("@/pages/List/FloorManage")),
        meta: { title: "楼层管理", requiredRole: "admin" },
      },
      {
        path: "roomManage",
        Component: lazy(() => import("pages/List/RoomManage")),
        meta: { title: "包间管理", requiredRole: "admin" },
      },
      {
        path: "messageManage",
        Component: lazy(() => import("@/pages/List/MessageManage")),
        meta: { title: "通知管理", requiredRole: "admin" },
      },
    ],
  },
];

export default result;
